<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
  </style>
  <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">  
  <style>
    .swiper-slide {
      max-width: 100%;
      height: 260px;
      background-position: 50% 50%;
      background-repeat: no-repeat;
      background-size: cover;
    }
    @media screen and (min-width:768px) {
      .swiper-slide {
        height: 360px;
      }
    }
    @media screen and (min-width:1200px) {
      .swiper-slide {
        height: 426px;
      }
    }
  </style>
</head>
<body>
  <div class="swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide" style="background-image: url(./images/slide1.jpg);"></div>
      <div class="swiper-slide" style="background-image: url(./images/slide2.jpg);"></div>
      <div class="swiper-slide" style="background-image: url(./images/slide3.jpg);"></div>
    </div>
    <div class="swiper-pagination"></div>
  </div>
  <script src="https://unpkg.com/swiper/swiper-bundle.min.js"> </script>
  <script>
    var swiper = new Swiper('.swiper-container',{
      loop:true,
      autoplay:true,
      pagination: {
      el: '.swiper-pagination',
      clickable: true,
      },
    });
  </script>
</body>
</html>